package util;

public class SimpleConnection {

		
		 public static synchronized SimpleConnection getInstance() throw AquariumException{
			  if(instance==null){
			   instance = new SimpleConnection();
			  }
			   return instance;
		 }
		 
		 private static SimpleConnection instance;
		 
			 private SimpleConnection() throws AquariumException{
			  String nomdriver = "sun.jdbc.odbc.JdbcOdbcDriver";
				  try{
				   Class.forName(nomdriver);
				  }catch(ClassNotFoundException e){
				   throw new AquariumException("Erreur de Connection"+e.getMessage());
				  }
				  
				  
			 }
			 
			 
	}

}
